package com.qww.test10;


class Bowl {
    Bowl() {}
    Bowl(int marker) {
        System.out.printf("Bowl(%d)\n", marker);
    }
    void f1(int marker) {
        System.out.printf("f1(%d)\n", marker);
    }
}

class Table {
    static Bowl b1 = new Bowl(1);
    Table() {
        System.out.println("Table()");
        b1.f1(1);
    }
    void f2(int marker) {
        System.out.printf("f2(%d)\n", marker);
    }
    static Bowl b2 = new Bowl(2);
}

class Cupboard {
    Bowl b3 = new Bowl(3);
    static Bowl b4 = new Bowl(4);
    Cupboard() {
        System.out.println("Cupboard()");
        b4.f1(2);
    }
    static Bowl b5 = new Bowl(5);
    static void method1() {}
}

public class Test10 {
    public static void main(String[] args) {
        System.out.println("main()");
        new Cupboard();
        new Table();
    }
    static Table tbl = new Table();
    static Cupboard cupbd = new Cupboard();
}
